import request from '@/utils/request'

// 主承业务概览
export function getPandectMain(params) {
  return request({
    url: 'buvBankUnderwritingController.do?getPandect',
    method: 'get',
    params
  })
}
export function getDetails(params) {
  return request({
    url: 'buvBankUnderwritingController.do?getDetails',
    method: 'get',
    params
  })
}
export function getBondPandect(params) {
  return request({
    url: 'buvBankUnderwritingController.do?getBondPandect',
    method: 'get',
    params
  })
}
// 手续费收入
export function getServiceIntoPandect(params) {
  return request({
    url: 'buvBankUnderwritingController.do?getServiceIntoPandect',
    method: 'get',
    params
  })
}
export function getServiceIntoDetails(params) {
  return request({
    url: 'buvBankUnderwritingController.do?getServiceIntoDetails',
    method: 'get',
    params
  })
}
export function getBondServiceIntoPandect(params) {
  return request({
    url: 'buvBankUnderwritingController.do?getBondServiceIntoPandect',
    method: 'get',
    params
  })
}
// 手续费支出
export function getServiceOutPandect(params) {
  return request({
    url: 'buvBankUnderwritingController.do?getServiceOutPandect',
    method: 'get',
    params
  })
}
export function getServiceOutDetails(params) {
  return request({
    url: 'buvBankUnderwritingController.do?getServiceOutDetails',
    method: 'get',
    params
  })
}
export function getBondServiceOutPandect(params) {
  return request({
    url: 'buvBankUnderwritingController.do?getBondServiceOutPandect',
    method: 'get',
    params
  })
}
// 明细分行修改
export function saveBranchNm(params) {
  return request({
    url: 'buvBankUnderwritingController.do?saveBranchNm',
    method: 'get',
    params
  })
}
export function exportXlsMain(params) {
  return request({
    url: 'buvBankUnderwritingController.do?exportXls',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
export function exportXlsDetailsMain(params) {
  return request({
    url: 'buvBankUnderwritingController.do?exportXlsDetails',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

